import request from '@/utils/request'

// 查询员工支出列表
export function listEmployeePayment(query) {
  return request({
    url: '/system/employee_payment/list',
    method: 'get',
    params: query
  })
}

// 查询员工支出详细
export function getEmployeePayment(paymentId) {
  return request({
    url: '/system/employee_payment/' + paymentId,
    method: 'get'
  })
}

// 新增员工支出
export function addEmployeePayment(data) {
  return request({
    url: '/system/employee_payment',
    method: 'post',
    data: data
  })
}

// 修改员工支出
export function updateEmployeePayment(data) {
  return request({
    url: '/system/employee_payment',
    method: 'put',
    data: data
  })
}

// 删除员工支出
export function delEmployeePayment(paymentId) {
  return request({
    url: '/system/employee_payment/' + paymentId,
    method: 'delete'
  })
}

// 导出员工支出
export function exportEmployeePayment(query) {
  return request({
    url: '/system/employee_payment/export',
    method: 'get',
    params: query
  })
} 